file chooser: Unify search mode leaving
authorMatthias Clasen <mclasen@redhat.com>
Wed, 28 Jan 2015 23:21:18 +0000 (18:21 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 28 Jan 2015 23:21:18 +0000 (18:21 -0500)
Make all ways to get out of search mode go through the same
code path, so we always populate the list.

gtk/gtkfilechooserwidget.c

index 70aaf6924221af14cf39b685f4c783c0382b1006..d6c02025bf9eca6ad9b98887a50bfc1862384593 100644 (file)
@@ -6271,7 +6271,7 @@ search_entry_activate_cb (GtkFileChooserWidget *impl)
 static void
 search_entry_stop_cb (GtkFileChooserWidget *impl)
 {
-  operation_mode_set (impl, OPERATION_MODE_BROWSE);
+  g_object_set (impl, "search-mode", FALSE, NULL);
 }
 
 /* Hides the path bar and creates the search entry */